<?php


namespace app\validate;


use think\Validate;

class ExpendValidate extends Validate
{
    protected $rule =   [
        'money'                     => 'require',
        'use_id'                    => 'require',
        'department_id'             => 'require',
        'employee_id'               => 'require',
        'expend_time'               => 'require'
    ];

    protected $message  =   [
        'money.require'             => '金额不要为空',
        'use_id.require'            => '请选择用途',
        'department_id.require'     => '请选择部门',
        'employee_id.require'       => '请选择员工',
        'expend_time.require'       => '请选择消费时间',
    ];
}